home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20021006-20030409 / 000289_curtis.steward@goodrich.com_Wed Feb 12 10:13:06 EST 2003.msg < prev    next >
Text File  |  2020-01-01  |  7KB  |  212 lines

  1. Article: 14084 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!panix!newsfeed.mathworks.com!arclight.uoregon.edu!logbridge.uoregon.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail
  3. From: curtis.steward@goodrich.com (Curtis Steward)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: SSL-Telnet waiting for WILL AUTHENTICATION subnegotiation
  6. Date: 11 Feb 2003 15:09:34 -0800
  7. Organization: http://groups.google.com/
  8. Lines: 193
  9. Message-ID: <f53f8c5c.0302111509.12c6ae2f@posting.google.com>
  10. References: <f53f8c5c.0302101307.43a79f75@posting.google.com> <3E482A46.2010509@nyc.rr.com> <f53f8c5c.0302110921.bbf187d@posting.google.com> <3E493E29.5040800@columbia.edu>
  11. NNTP-Posting-Host: 207.180.255.121
  12. Content-Type: text/plain; charset=ISO-8859-1
  13. Content-Transfer-Encoding: 8bit
  14. X-Trace: posting.google.com 1045004975 3618 127.0.0.1 (11 Feb 2003 23:09:35 GMT)
  15. X-Complaints-To: groups-abuse@google.com
  16. NNTP-Posting-Date: 11 Feb 2003 23:09:35 GMT
  17. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14084
  18.  
  19. Jeffrey Altman <jaltman@columbia.edu> wrote in message news:<3E493E29.5040800@columbia.edu>...
  20. > Curtis Steward wrote:
  21. > > Jeff,
  22. > > 
  23. > > I didn't realize that "AUTH SSL" shouldn't be used.  Thanks
  24. > > for the tip, that's why I also had "start-tls refused", trying
  25. > > to force SSL...
  26. > > 
  27. > >   I've changed from SSL to TLS.
  28. > >   Added the "start-tls required".
  29. > >   I've also had to resort to "--database:off" on the server, see
  30. > > syslog.
  31. > >   However, things still hang:
  32. > > 
  33. > > Negotiations..TELNET RCVD DO START-TLS
  34. > > TELNET SENT SB START-TLS FOLLOWS IAC SE
  35. > > TELNET RCVD DO AUTHENTICATION
  36. > > TELNET RCVD DO NAWS
  37. > > TELNET RCVD WILL SUPPRESS-GO-AHEAD
  38. > > TELNET RCVD DO SUPPRESS-GO-AHEAD
  39. > > TELNET RCVD WILL ECHO
  40. > > TELNET RCVD DO NEW-ENVIRONMENT
  41. > > TELNET RCVD SB START-TLS FOLLOWS  IAC SE
  42. > > [TLS - handshake starting]
  43. > > Loading RSA certificate into SSL
  44. > > Enter pass phrase: <passphrase>
  45. > > SSL_handshake:UNKWN  before/connect initialization
  46. > > SSL_connect:UNKWN  before/connect initialization
  47. > > SSL_connect:3WCH_A SSLv3 write client hello A
  48. > > HANG...
  49. > > 
  50. > > syslog
  51. > > Feb 10 16:37:58 cms iksd[825]: file[] /var/log/95dfd2cb.339: rename to
  52. > > /var/log/iksd.lck failed (No such file or directory)
  53. > How is iksd being started?
  54.  
  55. I'm using xinetd:
  56.  
  57. # default: on
  58. #        server_args     = -A --syslog:6 --database:off
  59. service kermit
  60. {
  61.     socket_type    = stream        
  62.     wait        = no
  63.     user        = root
  64.     server        = /usr/sbin/iksd
  65.         server_args     = -A 
  66.     disable        = no
  67. }
  68.  
  69. FYI, I am doing client/server testing on the same host, from what
  70. I figure "iks localhost" should be cool?
  71.  
  72. > > 
  73. > > script
  74. > > #!/usr/local/bin/kermit +
  75. > > set debug on
  76. > > set debug session
  77. > > set auth tls debug on
  78. > > set auth tls rsa-cert-file w.pem                   ;personal cert pem
  79. > > set auth tls rsa-key-file work_priv.pem            ;personal key pem
  80. > > set auth tls verbose on
  81. > > set auth tls verify-dir /usr/local/ca              ;CA directory
  82. > > set auth tls verify-file /usr/local/ca/cacert.pem  ;CA cert pem w/hash
  83. > > set login userid <userid>
  84. > > set telopt start-tls required
  85. > The file /usr/local/ca/cacert.pem must contain the CA certificate used 
  86. > to sign the IKSD host certificate
  87.  
  88. Yep
  89.  
  90. > > iksd.conf
  91. > > set auth tls rsa-cert-file /root/HomeWIP/pki/c.pem  #points to host
  92. > > cert?
  93. > > set auth tls rsa-key-file /root/HomeWIP/pki/cms.jms.lucascargo.com.pem
  94. > >  #points to host key?
  95. > These are the server's certificate and key in PEM format.
  96.  
  97. Yep again
  98.  
  99. > > set auth tls verify-dir /usr/local/ca
  100. > > set auth tls verify-file /usr/local/ca/cacert.pem
  101. > These are only necessary if you are attempting to verify client 
  102. > certificates.
  103.  
  104. Would this be the personal and/or client host certificates?
  105. >From  what I understand the following would give me client(personal
  106. user) authentication:
  107.  
  108.                        kermit client      kermit server
  109. personal user cert     rsa-cert-file      ~/.tlslogin
  110. client host cert       N/A                N/A
  111. server host cert       N/A                rsa-cert-file
  112. CA cert                verify-file        N/A
  113.  
  114. I'm just after user authentication, client host could come later.
  115.  
  116. > > Is the host settings for the iksd.conf's rsa's suppose to be the host
  117. > > client?  And is the CA key the only key that needs hashed?  
  118. >  
  119. > > Thanks
  120. > > 
  121. > > cs
  122. > To debug IKSD include a
  123. >    LOG DEBUG /root/iksd.debug.\v(pid).log
  124. > command in your iksd.conf file.  If you are not getting a response to 
  125. > the "client hello A" it is most likely a problem related to firewall's 
  126. > blocking the negotiation OR perhaps a file system access problem on the 
  127. > host.
  128.  
  129. ...
  130.  
  131. dbinit dbfile 1[(NULL)]
  132. dbinit dbdir 2[/var/log/]
  133. dbinit dbfile 2[/var/log/iksd.db]
  134. dbinit mypid=1255
  135. getlocalipaddr setting buf to[149.223.210.203]
  136. dbinit myip[95dfd2cb]=-1780493621
  137. ckgetpeer[cms.jms.lucascargo.com]=-1780493621
  138. dbinit peerip[95dfd2cb]=-1780493621
  139. dbinit peerip[95dfd2cb]=-1780493621
  140. dbinit dbenabled=1
  141. getslot idstring[95dfd2cb:0000001255
  142. ]
  143. getslot tempfile[/var/log/95dfd2cb.4e7]
  144. getslot lockfile[/var/log/iksd.lck]
  145. zrename old[/var/log/95dfd2cb.4e7]
  146. zrename new[/var/log/iksd.lck]
  147. zrename setroot[]=0
  148. isdir stat[/var/log/iksd.lck]=-1
  149. isdir errno=2
  150. zrename no dir[/var/log/iksd.lck]
  151. zrename rename()[/var/log/95dfd2cb.4e7]=0
  152. zfnqfp fname[/var/log/95dfd2cb.4e7]=4096
  153. zfnqfp realpath fails[/var/log/95dfd2cb.4e7]=2
  154. zfnqfp while *s[/var/log/95dfd2cb.4e7]
  155. zfnqfp len=21
  156. isdir stat[/var/log/95dfd2cb.4e7]=-1
  157. isdir errno=2
  158. zfnqfp path[/var/log/95dfd2cb.4e7]=21
  159. zfnqfp name[95dfd2cb.4e7]
  160. zfnqfp fname[/var/log/iksd.lck]=4096
  161. isdir stat[/var/log/iksd.lck]=0
  162. isdir islink=0
  163. isdir statbuf.st_mode=33152
  164. zfnqfp realpath path[/var/log/iksd.lck]
  165. zfnqfp realpath name[iksd.lck]
  166. getslot has lock[/var/log/iksd.lck]
  167. getslot dbfile[/var/log/iksd.db]
  168. zchki setroot[]=0
  169. STAT=5
  170. zchki stat ok:[/var/log/iksd.db]=0
  171. zchki access ok:[/var/log/iksd.db]=4096
  172. getslot record=0
  173. getslot dbflags:0x00
  174. getslot dbpid:0x04a2
  175. getslot dbip:0x95dfd2cb
  176. getslot free slot=0
  177. getslot records=1
  178.  
  179. ...
  180.  
  181. And from syslog...
  182.  
  183. Feb 11 14:13:51 cms iksd[1255]: file[4] /root/iksd.debug.1255.log:
  184. create ok
  185. Feb 11 14:13:51 cms iksd[1255]: file[] /var/log/95dfd2cb.4e7: rename
  186. to /var/log/iksd.lck failed (No such file or directory)
  187.  
  188. FYI, I tried again after doing a "mkdir /var/log/iksd.lck":
  189.  
  190. [root@cms pki]# ls /var/log/iksd.lck
  191. 95dfd2cb.45f
  192.  
  193. syslog...
  194.  
  195. Feb 11 13:47:20 cms iksd[1119]: file[] /var/log/95dfd2cb.45f: rename
  196. to /var/log/iksd.lck/95dfd2cb.45f failed (No such file or directory)
  197.  
  198. Couldn't find an example or case outside of stunnel, if I get this one
  199. working, I'm writing it up :).
  200.